package cn.kgc.crowdfundingadmin03.service;

import cn.kgc.crowdfundingadmin03.pojo.Advertisement;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdvertisementService {

    //分页查询
    PageInfo<Advertisement> getAllAdvertisement(Integer pageNum, Integer pageSize, String keyWord);

    //删除前的查询 根据id查询\
    List<Advertisement> getAll(List<Integer> advertisementIdList);

    //删除
    public void batchRemove(List<Integer> advertisementIdList);

    //增加
    /* public void saveAdvertisement(String name,String iconpath, Integer status,String url,Integer userid);*/
    public void saveAd(Advertisement advertisement);

    //修改
    public void updateCert(Advertisement advertisement);
}